﻿@{
    ViewBag.Title = "Role Listing";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<link href="~/Content/AdminTemplate/jquery-ui.css" rel="stylesheet" />

@section Scripts {

<script src="~/Scripts/RoleJsRole.js"></script>
<link href="~/Content/AdminTemplate/css/bootstrap.css" rel="stylesheet" />

    }




@section menuAdmin{

    <link rel="stylesheet" href="~/Content/AdminTemplate/assets/css/styles.css" />
    <nav>
        <ul class="fancyNav">

            <li id="home"><a href="/Account/RoleIndex" class="homeIcon">Home</a></li>

            <li id="news"><a href="#news">News</a></li>
            <li id="about">@Html.ActionLink("userProfile", "About", "Account")</li>
            <li id="services"><a href="#services">Services</a></li>
            <li id="contact"><a href="#contact">Contact us</a></li>
        </ul>
    </nav>





}

p>&nbsp;</p>
<div class="spacerBody">
    @Html.ActionLink("Create New Role", "RoleCreate") | @Html.ActionLink("Add Role to User", "RoleAddToUser")
<h2>Role Index</h2>
    <div class="table">
        
    
@foreach (string s in Model)
{
    <div class="tr">
        <div class="td">
            @s
        </div>
        <div class="td">
            <span onclick="return confirm('Are you sure to delete?')">
        <a href="/Account/RoleDelete?RoleName=@s" class="delLink"><img src="/images/deleteicon.gif" alt="Delete" class="imgBorder0" /> Delete</a>
                           </span>
        </div>
    </div>
}
        </div>
</div>